package com.example.trans;

import com.example.PaymentClassification;
import com.example.classification.SalariedClassifiction;


public class AddSalariedEmployeeTransaction extends AddEmployeeTransaction {
    
    private  double salary;

    public AddSalariedEmployeeTransaction(int empId, String name, String address, double salary) {
        super(empId, name, address);
        this.salary = salary;
    }
   @Override
    protected  PaymentClassification getPaymentClassification() {
      return new SalariedClassifiction(salary);
    }
}
